﻿#include "robothandcommunication.h"
#include "robothandkuka.h"
#include "robothandtest.h"

RobotHandCommunication::RobotHandCommunication(QObject* parent)
	: QObject(parent)
{}

RobotHandCommunication::~RobotHandCommunication()
{}

RobotHandCommunication* RobotHandCommunication::GetInstanceByBrand(const QString& brand)
{
	if (brand == "KUKA") {
		return new RobotHandKuka(nullptr);
	} else if (brand == "TEST") {
		return new RobothandTest(nullptr);
	}
	return nullptr;
}
